import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;


public class Vetorizador {

	
	public static void main(String[] args) throws IOException {
		
		BufferedImage imgVet = ImageIO.read(new File("C:\\Users\\pablo.reis\\FOTOX\\fundos\\azulejo.jpg"));
		File fundo = new File("C:\\Users\\pablo.reis\\FOTOX\\fundos\\fundo.jpg");
		BufferedImage imgFundo = ImageIO.read(fundo);
		
		
		imgFundo.createGraphics().drawImage(imgVet, 0, 0, null);
		imgFundo.createGraphics().drawImage(imgVet, 227, 0, null);
		imgFundo.createGraphics().drawImage(imgVet, 227*2, 0, null);
		imgFundo.createGraphics().drawImage(imgVet, 226*3, 0, null);
		
		
		ImageIO.write(imgFundo, "jpeg", fundo);
		
		
		
	}
}
